package com.heima.api.user;

import com.heima.model.article.dtos.AuthDto;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.ArrayList;

@FeignClient(value = "leadnews-user")
public interface IUserClient {

    @PostMapping("/auth/list")
    ResponseResult auth(@RequestBody AuthDto authDto);


    @PostMapping("/authFail")
    ResponseResult authFail(@RequestBody AuthDto authDto);

    @PostMapping("/is_follow")
    ResponseResult isFollow(@RequestBody ArrayList<Integer> list);

    @PostMapping("/authPass")
    ResponseResult authPass(@RequestBody AuthDto authDto);

    @PostMapping("/user")
    String getUser(@RequestBody Integer userId);

}
